package com.mapper;

import java.io.Serializable;

/**
     *
     * @TableName employee
     */
    public class Employee implements Serializable {
        /**
         *
         */
        private Integer id;

        /**
         *
         */
        private String name;

        /**
         *
         */
        private Integer age;

        /**
         *
         */
        private String position;

        private static final long serialVersionUID = 1L;

        /**
         *
         */
        public Integer getId() {
            return id;
        }

        /**
         *
         */
        public void setId(Integer id) {
            this.id = id;
        }

        /**
         *
         */
        public String getName() {
            return name;
        }

        /**
         *
         */
        public void setName(String name) {
            this.name = name;
        }

        /**
         *
         */
        public Integer getAge() {
            return age;
        }

        /**
         *
         */
        public void setAge(Integer age) {
            this.age = age;
        }

        /**
         *
         */
        public String getPosition() {
            return position;
        }

        /**
         *
         */
        public void setPosition(String position) {
            this.position = position;
        }

        @Override
        public boolean equals(Object that) {
            if (this == that) {
                return true;
            }
            if (that == null) {
                return false;
            }
            if (getClass() != that.getClass()) {
                return false;
            }
            Employee other = (Employee) that;
            return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                    && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
                    && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
                    && (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()));
        }

        @Override
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
            result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
            result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
            result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
            return result;
        }

        @Override
        public String toString() {
            StringBuilder sb = new StringBuilder();
            sb.append(getClass().getSimpleName());
            sb.append(" [");
            sb.append("Hash = ").append(hashCode());
            sb.append(", id=").append(id);
            sb.append(", name=").append(name);
            sb.append(", age=").append(age);
            sb.append(", position=").append(position);
            sb.append(", serialVersionUID=").append(serialVersionUID);
            sb.append("]");
            return sb.toString();
        }
    }
